<template "ui/head" />
<template "ui/iframe" />
<div class="lcms-form-attachment">
    <form class="layui-form layui-form-pane" data-onsubmit="dosubmit">
        <ui form($form) />
    </form>
</div>
<script type="text/javascript">var dosubmit=function(form){window.parent.postMessage({type:"lcms-editor-addattachment",title:form.title,file:form.file},"*");LCMS.util.iframe({do:"close"})}</script>
<template "ui/foot" />